package com.fhz.loginmvvm.adapter

import android.graphics.drawable.Drawable
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

/**
 * 时间:2023/3/24
 * @author Mr.Feng
 * 简述: TODO
 */
@BindingAdapter("imageUrl")
fun setImageUrl(view:ImageView,url:String?){
    if (url != null) {
        Glide.with(view.context).load(url).into(view)
    }else{
        println("url为空")
    }
}
